package top.iiiimonster.framework.banner.core;

import cn.hutool.core.thread.ThreadUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import java.util.concurrent.TimeUnit;

@Slf4j
@Component
public class BannerApplicationRunner implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args)  {

        ThreadUtil.execute(() -> {
            ThreadUtil.sleep(1, TimeUnit.SECONDS);
            log.info("--------------------项目启动");
            log.info("--------------------项目启动");
            log.info("--------------------项目启动");
            log.info("--------------------项目启动");
            log.info("--------------------项目启动");
            log.info("--------------------项目启动");
            log.info("top.iiiimonster.framework.banner.config.MonsterBannerAutoConfiguration");
        });

    }
}
